﻿using System;
using Moq;
using Prompts.ReportCatalog.Model;
using Prompts.ReportCatalog.ViewModels.Implementation;

namespace Test.Prompts.Infrastructure.Fakes
{
    public class FakeReportCatalogServiceClient
    {
        private readonly Mock<IReportCatalogServiceClient> _mock;
        private object _stateTemp;

        public FakeReportCatalogServiceClient()
        {
            _mock = new Mock<IReportCatalogServiceClient>();

            Func<object, bool> interceptStateFunction = o =>
                {
                    _stateTemp = o;
                    return true;
                };

            _mock.Setup(m => m.GetReportCatalogInfoAsync(It.Is<object>(s => interceptStateFunction(s))));
        }
    }
}
